get parameter base on value of another property c